package org.platform.executor.diagnose;

import com.mc.mic.core.bus.provider.IMicProviderServiceExecutor;
import org.platform.mo.csmo.cmd41001.AddTaskRequestParam;
import org.platform.mo.csmo.cmd41001.AddTaskResponseParam;
import org.platform.service.diagnose.DiagnoseTaskServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author FengJie
 * @date 2018/6/8
 */
@Service
public class AddTaskExecutor implements IMicProviderServiceExecutor<AddTaskRequestParam, AddTaskResponseParam> {
    @Autowired
    private DiagnoseTaskServiceImpl service;

    @Override
    public AddTaskResponseParam doExecute(AddTaskRequestParam addTaskRequestParam) {
        return service.addTask(addTaskRequestParam);
    }

}
